//
//  SKBarButtonItem.m
//  SouthKoreaDoorLock
//
//  Created by Umeinfo on 2018/1/18.
//  Copyright © 2018年 andy90s. All rights reserved.
//

#import "SKBarButtonItem.h"

@implementation SKBarButtonItem


- (instancetype)initWithTitle:(NSString *)title fontSize:(CGFloat)fontSize target:(id)target action:(SEL)action isBackButton:(BOOL)isBackButton {
    UIButton *button = [UIButton cz_textButton:title fontSize:fontSize normalColor:[UIColor whiteColor] highlightedColor:[UIColor lightGrayColor]];
    if (isBackButton) {
        [button setImage:[UIImage imageNamed:@"userinfo_navigationbar_back_withtext"] forState:UIControlStateNormal];
    }
    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    self = [self initWithCustomView:button];
    return self;
    
}

@end
